package com.cmsky.open.cms.service;

import java.util.List;
import java.util.Map;

import com.cmsky.open.cms.enums.CmsNodePropertyKey;
import com.cmsky.open.cms.model.CmsNodeInfo;

public interface CmsNodeService {
	/**
	 * 根据pid获取CmsNodeInfo
	 * @param pid
	 * @return
	 */
	public List<CmsNodeInfo> findByPid(Integer pid);
	/**
	 * 根据id获取cmsNodeInfo
	 * @param id
	 * @return
	 */
	public CmsNodeInfo findById(Integer id);
	/**
	 * 根据pid和sid获取CmsNodeInfo
	 * @param pid
	 * @param sid
	 * @return
	 */
	public CmsNodeInfo findByPidandSid(Integer pid,Integer sid);
	/**
	 * 根据pid获取sid对应的CmsNodeInfo
	 * @param pid
	 * @param sid
	 * @return
	 */
	public Map<Integer,CmsNodeInfo> findByPidForSid(Integer pid);
	/**
	 * 根据id获取properties属性
	 * @param id
	 * @return
	 */
	public Map<CmsNodePropertyKey,String> findProperties(Integer id);
}
